home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / edectl / edgectl.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-16  |  2.1 KB  |  109 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "edgectl.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CEdgeCtl
  12.  
  13. IMPLEMENT_DYNCREATE(CEdgeCtl, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CEdgeCtl properties
  17.  
  18. OLE_COLOR CEdgeCtl::GetBackColor()
  19. {
  20.     OLE_COLOR result;
  21.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CEdgeCtl::SetBackColor(OLE_COLOR propVal)
  26. {
  27.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  28. }
  29.  
  30. BOOL CEdgeCtl::GetEdgeBottom()
  31. {
  32.     BOOL result;
  33.     GetProperty(0x1, VT_BOOL, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CEdgeCtl::SetEdgeBottom(BOOL propVal)
  38. {
  39.     SetProperty(0x1, VT_BOOL, propVal);
  40. }
  41.  
  42. BOOL CEdgeCtl::GetEdgeLeft()
  43. {
  44.     BOOL result;
  45.     GetProperty(0x2, VT_BOOL, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CEdgeCtl::SetEdgeLeft(BOOL propVal)
  50. {
  51.     SetProperty(0x2, VT_BOOL, propVal);
  52. }
  53.  
  54. BOOL CEdgeCtl::GetEdgeRight()
  55. {
  56.     BOOL result;
  57.     GetProperty(0x3, VT_BOOL, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CEdgeCtl::SetEdgeRight(BOOL propVal)
  62. {
  63.     SetProperty(0x3, VT_BOOL, propVal);
  64. }
  65.  
  66. BOOL CEdgeCtl::GetEdgeTop()
  67. {
  68.     BOOL result;
  69.     GetProperty(0x4, VT_BOOL, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CEdgeCtl::SetEdgeTop(BOOL propVal)
  74. {
  75.     SetProperty(0x4, VT_BOOL, propVal);
  76. }
  77.  
  78. long CEdgeCtl::GetEdgeStyle()
  79. {
  80.     long result;
  81.     GetProperty(0x5, VT_I4, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CEdgeCtl::SetEdgeStyle(long propVal)
  86. {
  87.     SetProperty(0x5, VT_I4, propVal);
  88. }
  89.  
  90. short CEdgeCtl::Get_EdgeStyle()
  91. {
  92.     short result;
  93.     GetProperty(0x0, VT_I2, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CEdgeCtl::Set_EdgeStyle(short propVal)
  98. {
  99.     SetProperty(0x0, VT_I2, propVal);
  100. }
  101.  
  102. /////////////////////////////////////////////////////////////////////////////
  103. // CEdgeCtl operations
  104.  
  105. void CEdgeCtl::AboutBox()
  106. {
  107.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  108. }
  109.